package top.kent90.service;

import top.kent90.pojo.ZczyOrder;

import java.util.List;

public interface ZczyOrderService {


    /**
     * 查看所有订单
     * @param
     * @param page
     * @param size
     * @return
     */
    List<ZczyOrder> findAll(int page, int size) throws Exception;
    /**
     * 根据id查询订单信息
     * @param orderId
     * @return
     */
    ZczyOrder findById(Integer orderId) throws Exception;
    /**批量删除
     * @param orderId
     * @return
     */
    int delAll(Integer orderId) throws Exception;

    /**
     * 根据id删除信息
     * @param orderId
     * @return
     */
    int deleteById(Integer orderId) throws Exception;
    /**
     * 添加订单
     * @param zczyOrder
     * @return
     */
    int add(ZczyOrder zczyOrder) throws Exception;

    /**
     * 根据id修改订单信息
     * @return
     */
    ZczyOrder updateById(ZczyOrder zczyOrder) throws Exception;


}
